package com.work.common.base;


import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


//基础分页类
public class BaseQO<T> extends Page<T> {

    public void enablePage() {
        super.setCurrent(ObjectUtil.defaultIfNull(this.current, 1L));
        super.setSize(ObjectUtil.defaultIfNull(this.size, 10L));
    }
}
